<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <form>
        用户名：<input type="" name="">
        密码：<input type="" name="">
        验证码：<input type="" name="">
        <img src="http://127.0.0.1/P201802/xbs/public/index.php?m=admin&c=login&a=code">
    </form>

    <table>
        <tr>
            <td>id</td>
            <td>name</td>
            <td>age</td>
            <td>sex</td>
            <td>cid</td>
        </tr>
        <?php foreach ($data as $user): ?>

            <tr>
                <td><?php echo $user['sid']; ?></td>
                <td><?php echo $user['name']; ?></td>
                <td><?php echo $user['sex']; ?></td>
                <td><?php echo $user['age']; ?></td>
                <td><?php echo $user['cid']; ?></td>
            </tr>
            
        <?php endforeach ?>
        
    </table>
</body>
</html>